package yl.hs.bmipfull.service.system;

import org.apache.ibatis.annotations.Param;
import yl.hs.bmipfull.pojo.system.WechatUserEntity;
import yl.hs.bmipfull.service.IBaseService;

import java.util.Map;

/**
 * 作用:   <br/>
 * 创建时间: 2022-06-14 14:56 <br/>
 *
 * @author 吴高丰
 */
public interface IWechatUserService extends IBaseService {

    WechatUserEntity findByOpenId(String openId);
    /**
     * 保存微信注册用户信息信息
     *
     * @param model 微信注册用户信息表单信息
     * @param id    微信注册用户信息信息原有编号
     * @return 执行结果-受影响行数-Integer
     * @throws Exception 保存异常
     */
    Integer saveWechatUser(Map<String, Object> model, Long id,String truckplate,String companyid) throws Exception;

    Integer saveProjectWechatUser(Map<String, Object> model,Long id) throws Exception;

    WechatUserEntity findById(Long id);
    WechatUserEntity findByTruckPlate(String truckPlate,int state);
}
